home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / unix / amiga / 170 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.4 KB

  1. Path: dtek.chalmers.se!d1mag
  2. From: d1mag@dtek.chalmers.se (Christian Magnusson)
  3. Newsgroups: comp.unix.amiga
  4. Subject: Re: amiga clock wrong under NetBSD (and Linux)
  5. Date: 20 Jan 1996 03:52:08 GMT
  6. Organization: Chalmers University of Technology
  7. Message-ID: <4dpot8$f9r@nyheter.chalmers.se>
  8. References: <4ddp6d$5qg@stc06.ctd.ornl.gov> <4dff9t$kqv@rrzs3.uni-regensburg.de> <4dil7u$4ls8@news-s01.ny.us.ibm.net> <4dohkl$li4@news1.shell>
  9. NNTP-Posting-Host: mis.dtek.chalmers.se
  10.  
  11. In article <4dohkl$li4@news1.shell>,
  12. John Darrell Kesling <jkesling@shell.portal.com> wrote:
  13. >Frederick V. Heitkamp (heitkamp@ibm.net) wrote:
  14. >>Hubert Feyrer (feyrer@rfhs1012.fh.uni-regensburg.de) wrote:
  15. >>: charles thomas (thomas@ORNL.GOV) wrote:
  16. >>: > Just got the prebuilt generic NetBSD 1.1 running on my A3000.
  17. >>: > The date displays a time that's something like 5
  18. >>: > hours off, even when I set the timezone correctly. Time is
  19. >>: > correct when I boot into Amiga O/S.
  20. >
  21. >>I've noticed that Amiga Linux 1.2.13pl4 does the same thing.  Odd.
  22. >
  23. >>Fred Heitkamp
  24. >
  25. >When you're running Unix the system clock should be set to GMT.
  26.  
  27. This is correct..
  28.  
  29. >The difference between EST and GMT is 5 hours.  You should be able
  30. >to get the time to display the same under both operating systems
  31. >by lying to unix and telling it your in GMT (TZ=GMT ?).
  32.  
  33. Have you noticed that it's impossible to get correct date after a
  34. reboot if you had it set to something in the future before. ?
  35. I made that misstake before and I had some problem before it got synced
  36. to the actual time.
  37. The filesystems has some date saved, and if you reboot it will think
  38. the batteryclock is incorrect. The test is made in /sys/arch/amiga/dev/clock.c
  39.  
  40. inittodr() {  (pseudo code)
  41. if(battery_clock < filesystem_clock) { time = filesystem_clock }
  42. else { time = battery_clock }
  43. }
  44.  
  45. The only way for me was to boot it up, set the time with 'date' and then
  46. let the computer be turned on until the batteryclock was greater than the
  47. filesystemclock.  At my next reboot the date&time was OK.
  48. Of course I could patch the kernel, but isn't there any other way to get
  49. rid of this problem ?
  50.  
  51. I understand there are lots of problem if files have wrong dates, mostly
  52. system logging, make files etc., but are there any good sollution of it ?
  53.  
  54. Thanks...
  55.  
  56. Mag
  57. --
  58. |  Christian 'Mag' Magnusson        Computer Science and Engineering
  59. |  Email:  d1mag@dtek.chalmers.se    Chalmers University of Technology
  60. |  GSM:    +46 (0)705 380580
  61. |  WWW:    http://www.dtek.chalmers.se/~d1mag
  62.